package cn.ren.cloud.service.impl;

import cn.ren.cloud.domain.Teacher;
import cn.ren.cloud.mapper.TeacherMapper;
import cn.ren.cloud.service.ITeacherService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 老师表 服务实现类
 * </p>
 *
 * @author Ren
 * @since 2022-12-31
 */
@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, Teacher> implements ITeacherService {

    private final TeacherMapper teacherMapper;

    public TeacherServiceImpl(TeacherMapper teacherMapper) {
        this.teacherMapper = teacherMapper;
    }

    /**
     * 批量删除
     *
     * @param ids
     */
    @Override
    public void batchRemove( List<Long> ids) {
        teacherMapper.batchRemove(ids);
    }
}
